package homework4;

public class BaconPizza extends pizza {
   
public BaconPizza() {
		
	}

	
	public BaconPizza(String name, double price, int size,int grammage) {
		super();
		
		this.setGrammage(grammage);
	}



	//培根克数
	private int grammage;
	

	public int getGrammage() {
		return grammage;
	}

	public void setGrammage(int grammage) {
		this.grammage = grammage;
	}




	@Override
	public void make() {
		System.out.println("名称：" + this.getName());
		System.out.println("价格：" + this.getPrice() + "元");
		System.out.println("大小：" + this.getSize() + "寸");
		System.out.println("培根克数：" + this.getGrammage() + "克");
	}


}